import axios from 'axios'


const BASE_API = "http://161.117.83.241:6060/comp/"

axios.defaults.baseURL = BASE_API

// const nng_uid = this.$store.state.nngUserId
// 获取企业列表
export const getGroupList = () => {
    return axios.post("group/list")
    .then(res => res.data)
}

// 加入企业
export const joinGroup = (params,nngUserId) => {
    return axios.post(`user/joinGroup/${nngUserId}`, params)
    .then(res => res.data)
}

// 获取用户身份
export const getUserRole = params => {
    return axios.post(`user/getOwning/${params}`)
    .then(res => res.data)
}